﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL
{
    public class Car
    {
        public Car()
        { }
        private readonly Aliyeye.Car.Net.Dal.Car dal = new Aliyeye.Car.Net.Dal.Car();
        public int Add(Model.Car model)
        {
            return dal.Add(model);
        }
        public bool Update(Model.Car model)
        {
            return dal.Update(model);
        }
        public bool Delete(int Id)
        {
            return dal.Delete(Id);
        }
        public Model.Car GetModel(int Id)
        {
            return dal.GetModel(Id);
        }
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetAllListForSearchCondistion(string strSql)
        {
            return dal.GetAllListForSearchCondistion(strSql);
        }

        public List<Model.RemindListInfo> GetRemindList()
        {
            return dal.GetRemindList();
        }

        public bool UpdateCarStatus(int carID, DateTime dtCarTime, bool status)
        {
            return dal.UpdateCarStatus(carID, dtCarTime, status);
        }
    }
}
